package com.jiker;

/**
 * @author leo
 * @date 2021/6/16
 */
public enum Direction {
    /**
     * 东西南北
     */
    EAST("E", "东"),
    WEST("W", "西"),
    SOUTH("S", "南"),
    NORTH("N", "北");

    private final String abbreviation;
    private final String orientation;

    Direction(String abbreviation, String orientation) {
        this.abbreviation = abbreviation;
        this.orientation = orientation;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public String getOrientation() {
        return orientation;
    }

    @Override
    public String toString() {
        return "Direction{" +
                "abbreviation='" + abbreviation + '\'' +
                ", orientation='" + orientation + '\'' +
                '}';
    }
}
